package com.gxlu.ms.base.module.handler;

import com.gxlu.ms.base.module.context.Context;
import com.gxlu.ms.base.result.Result;

/**
 * @author lhc
 * @date 2018/03/16
 * BaseHandler
 */
public abstract class  BaseHandler<T extends Context,R extends Result> implements IHandler<T,R> {


    @Override
    public R execute(T context) {
        R result = R.success();
        result.setData(context);
        return result;
    }

}
